package com.kingdee.eas.custom.hr.compensation.app;

import org.apache.log4j.Logger;
import javax.ejb.*;
import java.rmi.RemoteException;
import com.kingdee.bos.*;
import com.kingdee.bos.util.BOSObjectType;
import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.rule.RuleExecutor;
import com.kingdee.bos.metadata.MetaDataPK;
//import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
//import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.IObjectCollection;
import com.kingdee.bos.service.ServiceContext;
import com.kingdee.bos.service.IServiceContext;

import com.kingdee.eas.common.EASBizException;
import com.kingdee.eas.util.app.DbUtil;

public class EmployeeBackupFacadeControllerBean extends AbstractEmployeeBackupFacadeControllerBean
{
    private static Logger logger =
        Logger.getLogger("com.kingdee.eas.custom.hr.compensation.app.EmployeeBackupFacadeControllerBean");
    
    @Override
	protected void _employeeBackup(Context ctx)throws BOSException, EASBizException {
		/*StringBuffer buffer = new StringBuffer();
		
		buffer.append("truncate table CT_COM_EmployeeBackup;	\n");
		buffer.append("Insert into CT_COM_EmployeeBackup(FID,cfpersonid, FCreateTime,	\n");
		buffer.append("FLastUpdateTime, FNumber, CFDept, CFDuty, CFAdminOrgBase, 	\n");
		buffer.append("CFAttendanceCode, CFPersonCategory, CFEmpClassify, CFCummutingCode, CFGrade, 	\n");
		buffer.append("CFChildRearing, CFRegpermresidence, CFPayGrade, CFArmyman, 	\n");
		buffer.append("CFWorkingAge25, CFIsDisability, CFEmployeeType )	\n");
		buffer.append("SELECT  PERSON.FID,PERSON.FID,sysdate,sysdate,	\n");
		buffer.append("PERSON.FNumber, 	\n");
		buffer.append("DEPT.FNumber , 	\n");
		buffer.append("DUTY.FNumber , 	\n");
		buffer.append("ADMINORGBASE.FNumber , 	\n");
		buffer.append("ATTENDANCECODE.FNumber, 	\n");
		buffer.append("PERSONCATEGORY.FNumber , 	\n");
		buffer.append("EMPLOYEECLASSIFY.FNumber, 	\n");
		buffer.append("CUMMUTINGCODE.FNumber, 	\n");
		buffer.append("GRADE.FNumber ,	\n");
		buffer.append("CHILDREARING.FNumber, 	\n");
		buffer.append("REGPERMRESIDENCE.FNumber , 	\n");
		buffer.append("PERSONPOSITION.CFPayGrade, 	\n");
		buffer.append("PERSON.CFArmyman , 	\n");
		buffer.append("PERSON.CFWorkingAge25 , 	\n");
		buffer.append("PERSON.CFIsDisability, 	\n");
		buffer.append("EMPLOYEETYPE.FNumber	\n");
		buffer.append("FROM T_BD_Person PERSON LEFT OUTER JOIN T_ORG_Admin DEPT ON PERSON.CFDeptID = DEPT.FID 	\n");
		buffer.append("LEFT OUTER JOIN T_ORG_Job DUTY ON PERSON.CFDutyID = DUTY.FID 	\n");
		buffer.append("LEFT OUTER JOIN T_CAN_AdminOrgBase ADMINORGBASE ON PERSON.FAdminOrgBaseID = ADMINORGBASE.FID	\n");
		buffer.append("LEFT OUTER JOIN CT_BAS_AttendanceCode ATTENDANCECODE ON PERSON.FAttendanceCodeID = ATTENDANCECODE.FID 	\n");
		buffer.append("LEFT OUTER JOIN CT_BAS_PersonCategory  PERSONCATEGORY ON PERSON.CFPersonCategory = PERSONCATEGORY.FID	\n");
		buffer.append("LEFT OUTER JOIN T_HR_EmployeeClassify  EMPLOYEECLASSIFY ON PERSON.FEmployeeClassifyID = EMPLOYEECLASSIFY.FID	\n");
		buffer.append("LEFT OUTER JOIN CT_BAS_CummutingCode CUMMUTINGCODE ON PERSON.CFCummutingCodeID = CUMMUTINGCODE.FID	\n");
		buffer.append("LEFT OUTER JOIN T_CAN_Grade  GRADE ON PERSON.FGradeID = GRADE.FID	\n");
		buffer.append("LEFT OUTER JOIN CT_BAS_ChildRearing  CHILDREARING ON PERSON.CFChildRearingID = CHILDREARING.FID	\n");
		buffer.append("LEFT OUTER JOIN T_HR_PersonContactMethod PERSONCONTACTMETHOD ON PERSON.FID = PERSONCONTACTMETHOD.FPersonID	\n");
		buffer.append("LEFT OUTER JOIN T_HR_PersonPosition PERSONPOSITION ON PERSON.FID = PERSONPOSITION.FPersonID	\n");
		buffer.append("LEFT OUTER JOIN T_HR_BDEmployeeType  EMPLOYEETYPE ON PERSON.FEmployeeTypeID = EMPLOYEETYPE.FID	\n");
		buffer.append("LEFT OUTER JOIN T_BD_Regpermresidence REGPERMRESIDENCE 	\n");
		buffer.append("ON PERSONCONTACTMETHOD.FRegresidenceID = REGPERMRESIDENCE.FID;	\n");*/

		//DbUtil.execute(ctx, buffer.toString());
    	
	}
    
}